<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-resource-card-list ng-if="::$ctrl.objectList.items"
                       selectable="::$ctrl.selectable"
                       with-statuses="::$ctrl.withStatuses"
                       list-resource="$ctrl.objectListResource"
                       select-id="{{::$ctrl.getSelectId()}}"
                       list="$ctrl.objectList">
  <kd-resource-card-list-header>
    <kd-resource-card-list-title ng-transclude="header">
      [[Objects|Label which appears above the list of such objects.]]
    </kd-resource-card-list-title>
    <kd-resource-card-list-filter></kd-resource-card-list-filter>
  </kd-resource-card-list-header>

  <kd-zero-state ng-if="!$ctrl.objectList.listMeta.totalItems">
    <kd-zero-state-text ng-transclude="zerostate">
      [[There are no Third Party Resource Objects to display.|Text for third party resource object card list zerostate.]]
    </kd-zero-state-text>
  </kd-zero-state>
  <kd-resource-card-header-columns ng-show="$ctrl.objectList.listMeta.totalItems">
    <kd-resource-card-header-column size="small"
                                    grow="1">
      [[Name|Title of a column for the name of a third party resource instance.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small"
                                    grow="1">
      [[Age|Title of a column for the age of a third party resource instance.]]
    </kd-resource-card-header-column>
  </kd-resource-card-header-columns>
  <kd-object-card ng-if="::$ctrl.objectListResource"
                  dir-paginate="object in $ctrl.objectList.items | itemsPerPage: default"
                  pagination-id="{{::$ctrl.getSelectId()}}"
                  object="object"
                  total-items="::$ctrl.objectList.listMeta.totalItems">
  </kd-object-card>

  <kd-resource-card-list-footer>
    <kd-resource-card-list-pagination></kd-resource-card-list-pagination>
  </kd-resource-card-list-footer>
</kd-resource-card-list>
